<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=yes">

    <title>{{ title }}</title>
    <link rel="stylesheet" href="/static/bootstrap4/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/bootstrap4/css/bootstrap-dialog.min.css">
    <link rel="stylesheet" href="/static/tabulator/css/bootstrap/tabulator_bootstrap4.min.css">
    <link rel="stylesheet" href="/static/fineuploader/fine-uploader-new.css"/>
    <link rel="stylesheet" href="/static/iziModal/iziModal.min.css"/>
    <script src="/static/jquery/jquery-3.5.1.js"></script>
    <script src="/static/fineuploader/fine-uploader.js"></script>
    {% block header %}
    {% endblock %}
</head>
<body class="container-fiuled">
<div class="row">
    <ul class="nav">
        <li class="nav-item">
            <a class="nav-link" href="/">首页</a>
        </li>
        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
               aria-expanded="false">导入excel</a>
            <div class="dropdown-menu">
                <a class="dropdown-item " href="{% url 'report:index' 0 %}">社内 - 加工班履历</a>
                <a class="dropdown-item " href="{% url 'report:index' 1 %}">社内 - 涂装班履历</a>
                <a class="dropdown-item " href="{% url 'report:index' 2 %}">社外 - 不良改善活动履历</a>
                <a class="dropdown-item " href="{% url 'report:index' 3 %}">社外 - 工程检查履历</a>
            </div>
        </li>

        <li class="nav-item dropdown">
            <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true"
               aria-expanded="false">查询</a>
            <div class="dropdown-menu">
                <a class="dropdown-item " href="{% url 'report:query' 0 %}">社内 - 加工班履历</a>
                <a class="dropdown-item " href="{% url 'report:query' 1 %}">社内 - 涂装班履历</a>
                <a class="dropdown-item " href="{% url 'report:query' 2 %}">社外 - 不良改善活动履历</a>
                <a class="dropdown-item " href="{% url 'report:query' 3 %}">社外 - 工程检查履历</a>
            </div>
        </li>
        <li class="nav-item">
            {% if request.user.is_authenticated %}
                <a class="nav-link" href="/accounts/signout/?next=/" tabindex="-1">注销</a>
            {% else %}
                <a class="nav-link" href="#" onclick="javascript:location.href='/accounts/signin/?next='+encodeURIComponent(location.href)" tabindex="-1">登录</a>
            {% endif %}
        </li>
        <li class="nav-item">
            <a class="nav-link" href="{% url 'report:about' %}" tabindex="-1" aria-disabled="true">关于</a>
        </li>
    </ul>
</div>
<div class="row" style="margin-top: 10px">
    <div class="col-auto"><h3><span style="color: #0fbad6">履历</span></h3></div>
</div>
{% block content %}
{% endblock %}
</body>
</html>
<script src="/static/propper.js"></script>
<script src="/static/bootstrap4/js/bootstrap.min.js"></script>
<script src="/static/bootstrap4/js/bootstrap-dialog.min.js"></script>
<script src="/static/iziModal/iziModal.min.js"></script>
<script src="/static/tabulator/js/tabulator.min.js"></script>
<script>
    $(document).ready(function () {
        function login() {
            let url = window.location.href;
            window.location.href("/accounts/signin/?next=" + url)
        }
    });

</script>
{% block script %}
{% endblock %}